//
//  Kratos_titleCellModel.m
//  kk_framework
//
//  Created by 7yao.top on 2018/11/5.
//  Copyright © 2018年 7yao.top. All rights reserved.
//

#import "Kratos_titleCellModel.h"
#import "Kratos_TableViewControllerConst.h"
#import "UIImage+kkkk_LoadBundleImage.h"

@implementation Kratos_titleCellModel

- (instancetype)initWithTitle:(NSString *)title Kratos_iconName:(NSString *)iconName Kratos_actionBlock:(Kra_ClickActionBlock)block;
{
    if(self = [super init]){
        self.Kra_cellHeight = Kratos_KCellHeight;
        self.title = title;
        self.showArrow = YES;
        self.Kra_actionBlock = block;
        self.Kra_selectionStyle = UITableViewCellSelectionStyleDefault;
        self.Kra_separateOffset = Kratos_KCellMargin;
        self.Kra_separateColor = Kratos_KSeparateColor;
        self.Kra_separateHeight = Kratos_KSeparateHeight;
        self.titleFont = Kratos_KTitleFont;
        self.titleColor = Kratos_KTitleColor;
        self.arrowImage = [UIImage Kratos_setBundleImageName:@"more"];
        self.arrowWidth = Kratos_KArrowWidth;
        self.arrowHeight = Kratos_kArrowHeight;
        self.controlRightOffset = Kratos_KCellMargin;
        self.arrowControlRightOffset = Kratos_KCellMargin/2;
        self.titileTextAlignment = NSTextAlignmentLeft;
        self.showArrow  = true;
        self.icon = [UIImage Kratos_setBundleImageName:iconName];
    }
    return self;
}
- (instancetype)initWithAttributeTitle:(NSAttributedString *)attributeTitle Kratos_iconName:(NSString *)iconName Kratos_actionBlock:(Kra_ClickActionBlock)block{
    if(self = [super init]){
        self.Kra_cellHeight = Kratos_KCellHeight;
        self.attributeTitle = attributeTitle;
        self.showArrow = YES;
        self.Kra_actionBlock = block;
        self.Kra_selectionStyle = UITableViewCellSelectionStyleDefault;
        self.Kra_separateOffset = Kratos_KCellMargin;
        self.Kra_separateColor = Kratos_KSeparateColor;
        self.Kra_separateHeight = Kratos_KSeparateHeight;
        self.titleFont = Kratos_KTitleFont;
        self.titleColor = Kratos_KTitleColor;
        self.arrowImage = [UIImage Kratos_setBundleImageName:@"more"];
        self.arrowWidth = Kratos_KArrowWidth;
        self.arrowHeight = Kratos_kArrowHeight;
        self.controlRightOffset = Kratos_KCellMargin;
        self.arrowControlRightOffset = Kratos_KCellMargin/2;
        self.titileTextAlignment = NSTextAlignmentLeft;
        self.icon  = [UIImage Kratos_setBundleImageName:iconName];
        
    }
    return self;
}


- (NSString *)Kra_cellClass
{
    return Kratos_TitleCellModelCellClass;
}


@end
